﻿using B.S.BaseData.Domain.Entities;
using Microsoft.EntityFrameworkCore;

namespace B.S.BaseData.Infrastructure
{
    public class DBContext : DbContext
    {
        public DBContext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User> Users { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roles { get; set; }
        /// <summary>
        /// 用户角色关系表
        /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }

        /// <summary>
        /// 菜单表
        /// </summary>

        public DbSet<Menu> Menus { get; set; }
        /// <summary>
        /// 角色菜单关系表
        /// </summary>

        public DbSet<RoleMenu> RoleMenus { get; set; }

        /// <summary>
        /// 请假申请
        /// </summary>

        public DbSet<Leave> Leaves { get; set; }

        /// <summary>
        /// 审批记录表
        /// </summary>
        public DbSet<Record> Records { get; set; }


       
    }
}
